package com.ming.luckyDemo.mapper;

import com.ming.luckyDemo.pojo.DO.UserInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author Tcm
 */
@Mapper
@Repository
public interface BetBillMapper {

    UserInfoDO queryByName(@Param("username") String username);

    double selectBalance(@Param("username") String username);

    int saveBet(@Param("numbers") int numbers, @Param("site") String site, @Param("type") String type,@Param("bet") double bet, @Param("currentDate") String current_date,@Param("username") String username);

    void updateBanlance(@Param("balance") double balance,@Param("username") String username);
}
